
import os
import os.path
import sys

from cron_conf import APP_BASE_PATH

def init():
    
    sys.path.append(APP_BASE_PATH)
    
    t = os.path.split(APP_BASE_PATH)
    sys.path.append(t[0])
    DJANGO_SETTINGS_MODULE = t[1] + '.' + 'settings'

    os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE

init()
